package com.zb.service.impl;

import com.zb.service.ZjWorkFeeLogService;
import com.zb.service.ZjWorkLogService;
import com.zb.service.ZjWorkSpareLogService;
import com.zb.vo.WorkFeeLogVo;
import com.zb.vo.WorkLogVo;
import com.zb.vo.WorkSpareLogVo;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.List;

/**
 * 工单日志工具类
 * @Author WEN
 * @Date 2023/9/22 0022
 **/
@Component
public class WorkServiceLog {
    @Resource
    private ZjWorkLogService workLogService;
    @Resource
    private ZjWorkFeeLogService workFeeLogService;
    @Resource
    private ZjWorkSpareLogService workSpareLogService;

    private static WorkServiceLog workServiceLog;

    @PostConstruct
    public void init() {
        workServiceLog = this;
        workServiceLog.workLogService = this.workLogService;
        workServiceLog.workFeeLogService = this.workFeeLogService;
        workServiceLog.workSpareLogService = this.workSpareLogService;
    }

    /**
     * 工单客服操作日志
     * @param logVo
     */
    public static void saveService(WorkLogVo logVo) {
        workServiceLog.workLogService.saveService(logVo);
    }

    /**
     * 工单客服操作日志
     * @param logVos
     */
    public static void saveService(List<WorkLogVo> logVos) {
        workServiceLog.workLogService.saveService(logVos);
    }

    /**
     * 工单网点操作日志
     * @param logVo
     */
    public static void saveNetwork(WorkLogVo logVo) {
        workServiceLog.workLogService.saveNetwork(logVo);
    }

    /**
     * 工单网点操作日志
     * @param logVos
     */
    public static void saveNetwork(List<WorkLogVo> logVos) {
        workServiceLog.workLogService.saveNetwork(logVos);
    }

    /**
     * 工单客户操作日志
     * @param logVo
     */
    public static void saveOrderUser(WorkLogVo logVo) {
        workServiceLog.workLogService.saveOrderUser(logVo);
    }

    /**
     * 工单客户操作日志
     * @param logVos
     */
    public static void saveOrderUser(List<WorkLogVo> logVos) {
        workServiceLog.workLogService.saveOrderUser(logVos);
    }


    /**
     * 工单乐开伙伴云操作日志
     * @param logVo
     */
    public static void saveLKaiHoubanyunOrder(WorkLogVo logVo) {
        workServiceLog.workLogService.saveLKaiHoubanyun(logVo);
    }


    /**
     * 保存客服操作的工单费用记录
     * @param workFeeLogVo
     */
    public static void saveServiceFeeLog(WorkFeeLogVo workFeeLogVo) {
        workServiceLog.workFeeLogService.saveServiceFeeLog(workFeeLogVo);
    }

    /**
     * 批量保存客服操作的工单费用记录
     * @param workFeeLogVos
     */
    public static void saveServiceFeeLog(List<WorkFeeLogVo> workFeeLogVos) {
        workServiceLog.workFeeLogService.saveServiceFeeLog(workFeeLogVos);
    }

    /**
     * 保存移动端网点操作的工单费用记录
     * @param workFeeLogVo
     */
    public static void saveMobileNetworkFeeLog(WorkFeeLogVo workFeeLogVo) {
        workServiceLog.workFeeLogService.saveMobileNetworkFeeLog(workFeeLogVo);
    }

    /**
     * 批量保存移动端网点操作的工单费用记录
     * @param workFeeLogVos
     */
    public static void saveMobileNetworkFeeLog(List<WorkFeeLogVo> workFeeLogVos) {
        workServiceLog.workFeeLogService.saveMobileNetworkFeeLog(workFeeLogVos);
    }

    /**
     * 保存第三方系统操作的工单费用记录
     * @param workFeeLogVo
     */
    public static void saveThirdSystemFeeLog(WorkFeeLogVo workFeeLogVo) {
        workServiceLog.workFeeLogService.saveThirdSystemFeeLog(workFeeLogVo);
    }

    /**
     * 批量保存第三方系统操作的工单费用记录
     * @param workFeeLogVos
     */
    public static void saveThirdSystemFeeLog(List<WorkFeeLogVo> workFeeLogVos) {
        workServiceLog.workFeeLogService.saveThirdSystemFeeLog(workFeeLogVos);
    }


    /**
     * 保存客服操作的工单备件记录
     * @param workSpareLogVo
     */
    public static void saveServiceWorkSpareLog(WorkSpareLogVo workSpareLogVo) {
        workServiceLog.workSpareLogService.saveServiceWorkSpareLog(workSpareLogVo);
    }

    /**
     * 批量保存客服操作的工单备件记录
     * @param workSpareLogVos
     */
    public static void saveServiceWorkSpareLog(List<WorkSpareLogVo> workSpareLogVos) {
        workServiceLog.workSpareLogService.saveServiceWorkSpareLog(workSpareLogVos);
    }

    /**
     * 保存移动端网点操作的工单备件记录
     * @param workSpareLogVo
     */
    public static void saveMobileNetworkWorkSpareLog(WorkSpareLogVo workSpareLogVo) {
        workServiceLog.workSpareLogService.saveMobileNetworkWorkSpareLog(workSpareLogVo);
    }

    /**
     * 批量保存移动端网点操作的工单备件记录
     * @param workSpareLogVos
     */
    public static void saveMobileNetworkWorkSpareLog(List<WorkSpareLogVo> workSpareLogVos) {
        workServiceLog.workSpareLogService.saveMobileNetworkWorkSpareLog(workSpareLogVos);
    }

    /**
     * 保存第三方系统操作的工单备件记录
     * @param workSpareLogVo
     */
    public static void saveThirdSystemWorkSpareLog(WorkSpareLogVo workSpareLogVo) {
        workServiceLog.workSpareLogService.saveThirdSystemWorkSpareLog(workSpareLogVo);
    }

    /**
     * 批量保存第三方系统操作的工单备件记录
     * @param workSpareLogVos
     */
    public static void saveThirdSystemWorkSpareLog(List<WorkSpareLogVo> workSpareLogVos) {
        workServiceLog.workSpareLogService.saveThirdSystemWorkSpareLog(workSpareLogVos);
    }

    /**
     * 保存客服操作的工单备件旧件记录
     * @param workSpareLogVo
     */
    public static void saveServiceWorkSpareOldLog(WorkSpareLogVo workSpareLogVo) {
        workServiceLog.workSpareLogService.saveServiceWorkSpareOldLog(workSpareLogVo);
    }

    /**
     * 保存客服操作的工单备件旧件记录
     * @param workSpareLogVos
     */
    public static void saveServiceWorkSpareOldLog(List<WorkSpareLogVo> workSpareLogVos) {
        workServiceLog.workSpareLogService.saveServiceWorkSpareOldLog(workSpareLogVos);
    }



}
